/*
** File:   mainwindow.h
** Class:  
** Author: Krzysztof Sas
** Date:   2012-03-29
******************************/

#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QtGui/QMainWindow>
#include <QtNetwork/QtNetwork>
#include <QtGui>

class MainWindow : public QWidget
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();

private slots:
    void onClientRecv();
    void sendMessage();
    void checkState();
private:
    QUdpSocket *m_udpSocket;
    quint16 m_port;
    QLineEdit* m_textEdit;
    QTextEdit* m_received;
    QToolButton* m_send;

    QTimer m_timer;
};

#endif // MAINWINDOW_H
